package com.zjw.service.impl;

import com.zjw.entity.po.WeiUsers;
import com.zjw.mapper.WeiUsersMapper;
import com.zjw.service.WeiUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class WeiUsersServiceImpl implements WeiUsersService {

    @Autowired
    private WeiUsersMapper weiUsersMapper;
    /**
     * 微信用于收集微信个人信息 添加方法
     *
     * @param record
     */
    @Override
    public int insertSelective(WeiUsers record) {
        return weiUsersMapper.insertSelective(record);
    }

    /**
     * 根据openid 查询 wei_users是否存在
     *
     * @param openid
     */
    @Override
    public WeiUsers selectWeiUsersByOpenid(String openid) {
        return weiUsersMapper.selectWeiUsersByOpenid(openid);
    }

    @Override
    public WeiUsers selectByPrimaryKey(Integer id) {
        return weiUsersMapper.selectByPrimaryKey(id);
    }
}